package sardine.function;

import sardine.Request;
import sardine.Response;

/**
 * 路由器
 *
 * @auth bruce-sha
 * @date 2015/5/21
 */
@FunctionalInterface
public interface Route<T> {

    T apply(Request request, Response response) throws Exception;

    @FunctionalInterface
    public static interface VRoute<T> {
        T apply() throws Exception;
    }

}
